package uva;

import java.util.WeakHashMap;

import rice.pastry.Id;

public class MaliciousId extends Id {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private static WeakHashMap ID_MAP = new WeakHashMap();

	public MaliciousId(int[] material) {
		super(material);

	}

	  public static Id build(int material[]) {
		    return resolve(ID_MAP, new MaliciousId(material));
		  }
		  
	  
	  public static Id build(byte[] material) {
		    return build(trans(material));
		  }

}
